#ifndef VECTOR_H
#define VECTOR_H

#include <cmath>
#ifndef M_PI
#define M_PI 3.14159265
#endif

class Vector
{
public:
	Vector(float, float);
	Vector();
	~Vector();

	void addVector(Vector *);
	void subVector(Vector *);
	void rotateVector(float);
	void rotateVector(float, float);

	Vector *projectVector(Vector *);
	float dotProduct(Vector *);
	float magnitude();
	void normalize();

	void setX(float a){ x = a; };
	void setY(float b){ y = b; };

	float getX(){ return x; };
	float getY(){ return y; };

private:
	float x, y;
};

#endif
